import { Get /* Post*/ } from '../utils/http'

/**
 * 获取轮播图列表
 */
export const getBannerListApi = (data = {}) =>
  Get({
    url: 'api/banner/list',
    data
  })

/**
 * 获取轮播详情
 */
export const getBannerInfoApi = (data = {}) =>
  Get({
    url: 'api/banner/detail',
    data
  })

/**
 * 获取客服信息
 */
export const getServiceInfoApi = (data = {}) =>
  Get({
    url: 'api/customerService/detail',
    data
  })

/**
 * 用户条款和隐私协议
 */
export const getAgreeInfoApi = (data = {}) =>
  Get({
    url: 'api/agreement/detail',
    data
  })

/**
 * 小程序支付（后台）
 */
export const miniPayApi = (data = {}) =>
  Get({
    url: 'api/pay/wx/transactions/jsapiMini',
    data
  })

/**
 * 获取样品寄件地址
 */
export const getAddressManagementByTypeApi = (data = {}) =>
  Get({
    url: 'api/addressManagement/getByType',
    data
  })
